package com.hk.webapp.vo;

import lombok.Data;
import lombok.NonNull;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
public class EditArticleVo {
    /// <summary>
    /// 文章id
    /// </summary>
    private Integer id;

    /// <summary>
    /// Desc:分类id
    /// </summary>
    private Integer category_id;

    /// <summary>
    /// 标识代码
    /// </summary>
    private String code;

    /// <summary>
    /// Desc:标题
    /// Default:
    /// Nullable:False
    /// </summary>
    @NotBlank
    private String title;
    private String bak_title;

    /// <summary>
    /// Desc:副标题
    /// </summary>
    private String sub_title;

    /// <summary>
    /// Desc:描述、摘要
    /// </summary>
    private String description ;
    private String bak_description;

    /// <summary>
    /// Desc:外链接
    /// </summary>
    private String link_url;

    /// <summary>
    /// Desc:封面图
    /// </summary>
    private String img_url;

    /// <summary>
    /// Desc:相册，用英文逗号隔开
    /// </summary>
    private String imgs_url;

    /// <summary>
    /// Desc:视频链接
    /// </summary>
    private String video_url;

    /// <summary>
    /// 附件地址
    /// </summary>
    private String attachment;

    /// <summary>
    /// Desc:内容
    /// </summary>
    private String content;

    /// <summary>
    /// Desc:seo标题
    /// </summary>
    private String meta_title;

    /// <summary>
    /// Desc:seo描述
    /// </summary>
    private String meta_description;

    /// <summary>
    /// Desc:seo关键字
    /// </summary>
    private String meta_keywords;
    /// <summary>
    /// 文章来源
    /// </summary>
    private String source ;
    /// <summary>
    /// 文章作者
    /// </summary>
    private String author;

    /// <summary>
    /// 发布时间
    /// </summary>
    private Date publish_time=new Date();

    /// <summary>
    /// 点击量
    /// </summary>
    private Integer hit_count=0;

    /// <summary>
    /// 排序
    /// </summary>
    private Integer sort =30;

    /// <summary>
    /// 权重
    /// </summary>
    private Integer weight =30;

    /// <summary>
    /// 是否置顶 0否 1是
    /// </summary>
    private Integer is_top=0;

    /// <summary>
    /// 是否推荐 0否 1是
    /// </summary>
    private Integer is_recommend=0;

    /// <summary>
    /// 状态 0不显示 1显示
    /// </summary>
    private Integer state=1;

    /// <summary>
    /// 关联id
    /// </summary>
    public Integer rel_id=0;
}
